﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using CRM.Admin.Contracts.Dto.Customer;
using CRM.Admin.Contracts.Model.Customer;
using KingsSharp.Common.Data;
using KingsSharp.Core;

namespace CRM.Admin.Contracts.Contract.Customer
{
    public interface ICustomerNatureService: IDependency
    {
        /// <summary>
        /// 顾客顾客性质明细集合
        /// </summary>
        IQueryable<CustomerNature> Natures { get; }

        /// <summary>
        /// 新增顾客性质
        /// </summary>
        /// <param name="dtos">顾客性质信息dto</param>
        /// <returns></returns>
        OperationResult Insert(params CustomerNatureDto[] dtos);


        /// <summary>
        /// 编辑顾客顾客性质明细
        /// </summary>
        /// <param name="dtos">顾客顾客性质明细信息dto</param>
        /// <returns></returns>
        OperationResult Update(params CustomerNatureDto[] dtos);

        /// <summary>
        /// 删除顾客顾客性质
        /// </summary>
        /// <param name="ids">要删除的主键数组</param>
        /// <returns></returns>
        OperationResult Delete(params Guid[] ids);
    }
}
